<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<title>修改登录密码</title>
<link href="Style/Common.css" rel="stylesheet">
<link href="Style/Login.css" rel="stylesheet">
    <script src="Js/jquery-1.9.0.min.js" type="text/javascript"></script>
    <script src="Js/jquery.cookie.js" type="text/javascript"></script>
    <script language="javascript">
        function pwdedit() {
            if ($("#pwd2").val() != $("#pwd22").val()) { alert('确认新密码错误'); return; }
            if ($("#pwd2").val().length < 6) { alert('新密码长度不能少于6位'); return; }
            $.ajax({
                type: "post",
                url: "/ServiceInterface/MoreOthers.ashx",
                data: { flag: "editpwd1", pwd1: $("#pwd1").val(), pwd2: $("#pwd2").val() },
                dataType: "text",
                async: false,
                success: function (data) {
                    if (data == '1') {
                        alert('密码修改成功');
                        location.href = "More.html"
                    } else {
                        alert(data);
                    }
                }
            });
        }
    </script>
</head>

<body>
 <div class="Header">
  <p>修改登录密码</p>
  <span onclick="location.href = 'More.html';"><img src="Images/Return.png"></span>
  <!--<a href="#">提交</a>-->
 </div><!--Header end-->
 <div class="RegistBox">
  <ul>
   <li>
    <img src="Images/PassWord.png">
    <input id="pwd1" value="原始旧密码" class="Sizing" onFocus="this.value=''">
   </li>
   <li>
    <img src="Images/PassWord.png">
    <input id="pwd2" value="新的密码" class="Sizing" onFocus="this.value=''">
   </li>
  <li>
    <img src="Images/PassWord.png">
    <input id="pwd22" value="新密码确认" class="Sizing" onFocus="this.value=''">
   </li>
  </ul> 
 </div><!--RegistBox end-->
 <button class="RegistBtn" onclick="pwdedit()">保 存</button>
 <div class="MenuBar" id="menuDiv">
 </div><!--MenuBar end--> 
</body>
</html>
<script src="Js/common.js" type="text/javascript"></script>
<script src="Js/user.js" type="text/javascript"></script>